package com.hns.can.common.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 直接页面跳转.适用于无参数无映射的页面 
 * @author:Fisher
 * @email:zhuangcaijin@126.com
 * @version Revision 2.0.0
 */
@Controller
public class IndexController {
	
	@RequestMapping("/{module}/{pageName}")
	public String page(@PathVariable String module, @PathVariable String pageName) {
		String viewName = module + "/" + pageName;
		return viewName;
	}
	
	@RequestMapping("/{module}/{module1}/{pageName}")
	public String page(@PathVariable String module,@PathVariable String module1, @PathVariable String pageName) {
		String viewName = module + "/" + module1 + "/"+ pageName;
		return viewName;
	}

}